@echo off
rem Param 1: System User
rem Param 2: System Passwort
rem Param 3: Connection key in tnsnames.ora
rem Param 4: oms user
rem Parma 5: oms password

if "%1" == "" goto error
if "%2" == "" goto error
if "%3" == "" goto error
if "%4" == "" goto error
if "%5" == "" goto error

sqlplus %1/%2@%3 @setup/start.sql %3 %4 %5 
goto end

:error
cls
echo.
echo Missing parameter!
echo.
echo.
echo Syntax:
echo.
echo omssetup [system user] [system passwort] [tnsnames.ora connection key] [new oms user] [new oms passwort]
echo.
echo.

:end
pause